package com.company.cloud.acct.modules.base.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.company.cloud.common.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 1_账户信息表
 * </p>
 *
 * @author anros
 * @since 2020-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("acct_account_info")
public class AccountInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公司编号
     */
    @ApiModelProperty(value = "公司编号")
    private String companyNo;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 账户分类
     */
    @ApiModelProperty(value = "账户分类")
    private String type;

    /**
     * 累计收入金额
     */
    @ApiModelProperty(value = "累计收入金额")
    private BigDecimal totalFund;

    /**
     * 账户金额
     */
    @ApiModelProperty(value = "账户金额")
    private BigDecimal fund;

    /**
     * 冻结金额
     */
    @ApiModelProperty(value = "冻结金额")
    private BigDecimal freezeFund;

    /**
     * 不可用金额
     */
    @ApiModelProperty(value = "不可用金额")
    private BigDecimal notFund;

    /**
     * 账户状态
     */
    @ApiModelProperty(value = "账户状态")
    private String state;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Integer cman;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime cdt;

    /**
     * 创建人IP
     */
    @ApiModelProperty(value = "创建人IP")
    private String cip;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private Integer eman;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime edt;

    /**
     * 更新人IP
     */
    @ApiModelProperty(value = "更新人IP")
    private String eip;


}
